#include <QObject>
#include "CmdUtil.h"
#include "MainWindow.h"

class TomcatCheckWorker : public QObject {
    Q_OBJECT
public:
    TomcatCheckWorker() {

    }
signals:
    void finish(bool flag);
private slots:
    void onTimeout() {
//        qDebug() << "onTimeout TomcatCheckWorker";
        bool flag = CmdUtil::isPortListening(MainWindow::tomcatPort);
        emit finish(flag);
    }
};
